# -*- coding: utf-8 -*-
"""
    @project: pythonProject
    @Author：HanYonghua
    @file： redis_recv.py
    @date：2025/4/25 12:45
    @blogs: https://www.ncatest.com.cn
"""
import redis

r = redis.StrictRedis(host='127.0.0.1', port=6379, db=0)

chunks = r.lrange('file_chunks', 0, -1)  # 获取所有分块
with open('wifi4_demod_lib1.rar', 'wb') as f:
    for chunk in chunks:
        f.write(chunk)

r.delete("file_chunks")
r.close()
